package day1;

/**
 * @author oldliu
 * @since 1.0
 */
public class StrTest6 {
    public static void main(String[] args) {
        String name="张振帅";
        int age=21;
        double heig=1.78398472394234;
        String str="这个同学叫 %s,今年%d岁了，身高是%2.2f米";
        String s = String.format(str, name, age, heig);
        System.out.println(s);
    }
}
